from mongoengine import *
from db import *

# connect('sbo',username='kobako', password='qwer1234', authentication_source='admin')
connect('sbo',host='192.154.214.165',username='kobako', password='123', authentication_source='admin')


# shit = User(name='kobako', pwd='123', nick='kobako')
kobako = User.objects(Q(name='kobako') & Q(pwd='123')).first()
print str(kobako)

# shit.save()